﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Cool.Core;
using Cool.Core.ComDto;

namespace Cool.Application.System.UserService.Dtos
{
    /// <summary>
    /// 用户信息
    /// </summary>
    public class UserProfile: DeptBaseDto
    {
        /// <summary>
        /// 账号
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 昵称
        /// </summary>
        public string NickName { get; set; }

        /// <summary>
        /// 用户类型（00系统用户）
        /// </summary>
        public string UserType { get; set; }

        /// <summary>
        /// 头像（OSS地址）
        /// </summary>
        public string Photo { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        public string Pwd { get; set; }

        /// <summary>
        /// 部门
        /// </summary>
        public string DeptName { get; set; }

        /// <summary>
        /// 邮箱
        /// </summary>
        [MaxLength(64)]
        public string Email { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        public char Sex { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        public char Status { get; set; }

        /// <summary>
        /// 电话号码
        /// </summary>
        public string PhoneNumber { get; set; }

        public List<int> roleIds { get; set; }

        public List<int> postIds { get; set; }
    }
}
